/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import control.GuiManager;
import java.awt.Dimension;
import java.util.LinkedList;
import javax.swing.Box;
import javax.swing.JOptionPane;

/**
 *
 * @author Jojo
 */
public class LejosObjectsPanel extends javax.swing.JPanel {

    /**
     * Creates new form LejosObjectsPanel
     */
    public LejosObjectsPanel() {
        initComponents();
        this.setSize(new Dimension(200,500));
        this.setPreferredSize(new Dimension(200,500));
        this.add(new ObjectCardPilot());
        this.add(new ObjectCard("block", 1));       
        this.add(new ObjectCardSensor("licht", 3));
        this.add(new ObjectCardSensor("touch", 7));
        this.add(new ObjectCardSensor("farbe", 4));        
        this.add(new ObjectCardSensor("ultra", 5));
        this.add(new ObjectCardSensor("sound", 6));
        this.add(new ObjectCardMotor("motor", 8)); 
        this.add(new ObjectCard("komm", 2));
        this.validate();
        this.repaint();
        
        
        
    }
    
    CustomEditorPane activeEditor;
    

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 30), new java.awt.Dimension(0, 30), new java.awt.Dimension(32767, 30));

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Objekte einfügen");
        jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        add(jLabel1);
        add(filler1);
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.Box.Filler filler1;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables

    
    
    

    void setActiveDokument(CustomEditorPane textEditor) {
        this.activeEditor = textEditor;
    }

    void deactivate() {
        this.setEnabled(false);
        this.setVisible(false);
    }
    
    void activate(){
        this.setEnabled(true);
        this.setVisible(true);
    }
}
